/*
 * gy_enpdef.h
 *
 *  Created on: 2015年9月15日
 *      Author: gaoyi
 */

#ifndef GY_ENPDEF_H_
#define GY_ENPDEF_H_

#include "CTBase.h"
#include "CTBuffer.h"
#include "CTStat.h"
#include "CTSizeString.h"
#include "CTArray.h"
#include "CTObjectMgr.h"
#include "CTShmQueue.h"
#include "net/CTEpoll.h"
#include "CTMsgBase.h"
#include "CTConfig.h"
#include "CTServerUtils.h"
#include <string>

#include "CConfig.h"

using namespace CTLib;

#define CHECK_RETURN(iRet)  do { if (iRet) { return iRet; } } while(0)
#define CHECK_EXIT(iRet) do { if (iRet) { exit(iRet); } } while(0)
#define CHECK_THROW(iRet) do { if (iRet) { CT_THROW((iRet)); } } while(0)


//===============================================
// 统计项的定义

// 统计的CTLog
#define CT_STAT (CTLib::CTSingleton<CTLib::CTLog, 2>::Instance())


#endif /* GY_ENPDEF_H_ */
